1 #COPYRIGHT
2 #Password Generator
3 #written
by Sepehr Mohseni
4
5
6
7
8 #importing libraries
9 import
string
10 import random
11
12 #main
13 def GeneratePassword (passLength):
14     password =
string.ascii_letters + string.digits + "!@#$%^&*()_+=-./?><|\}{[]"
15     #generating characters, numbers and letters
for password
16     passwordList = []
17     #password list
is for putting all the selected password units into a string and show them to user
18     
for passChar in range(passLength):
19         passRandom = random.choice(password)
20         passwordList.append(passRandom)
21
22     finalOutput =
"".join(passwordList)
23     
return finalOutput


Gõ tìm kiếm nhanh...